package com.beemans.common.app

import android.content.Context
import android.os.Handler
import android.os.Looper
import com.beemans.common.ICommonApp
import com.tiamosu.fly.base.BaseFlyApplication

/**
 * @author tiamosu
 * @date 2021/3/12
 */
abstract class CommonApp : BaseFlyApplication(), ICommonApp {

    companion object {
        val globalHandler by lazy { Handler(Looper.getMainLooper()) }
    }

    override fun attachBaseContext(base: Context) {
        super.attachBaseContext(base)
        initConfigurator()
    }

    override fun onCreate() {
        super.onCreate()
        onAppCreate()
    }
}